home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1996
/
MacHack 1996.toast
/
Presentations
/
Presentations ’92
/
PatchWorks Kit
/
<PatchWorks++>
/
Scalper.h
< prev
next >
Wrap
Text File
|
1992-05-15
|
793b
|
35 lines
/*
Scalper.h
Scalper related definitions.
by Mouse Herrel & Patrick C. Beard.
*/
#pragma once
#ifndef __SCALPER__
#define __SCALPER__
#include "Patch.h"
#define gestaltScalperPatchProc 'L¥NK'
#define cFirstOSTrap 0xa000
#define cLastOSTrap 0xa0ff
#define cNumOSTraps (cLastOSTrap - cFirstOSTrap + 1)
#define cFirstToolTrap 0xa800
#define cLastToolTrap 0xab2a
#define cNumToolTraps (cLastToolTrap - cFirstToolTrap + 1)
enum {
eBeginScalperErrors = 1000, // we should use an error handling scheme.
eNoScalperErr, // The companion extension is not running.
eScalperInUseErr, // The companion extension is already being used.
eEndScalperErrors
};
typedef pascal PatchVectorPtr (*ScalperHook) (short id);
typedef pascal StringPtr (*UnpatchHook) (void);
#endif